package com.muhuahealth.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author GSK
 * @version 1.0
 * @date 2021/2/3 21:07
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class EventRecordEntity {

    private Integer id;

    private String eventName;

    private Integer recordTypeId;

    // 前台String->后台Date
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    // 后台时间戳Date->前台格式化
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date happenTime;

    private String happenStreet;

    private String responseUnit;

    private String principePhone;

    // 前台String->后台Date
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    // 后台时间戳Date->前台格式化
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date remarkTime;

    private String remarkPeople;

    private String detailAddress;

    private String situation;

    private String solution;

    private String files;

    private RecordTypeEntity recordType;
}
